import request from '../utils/request'

/**
 *后面的每次请求都是需要携带token的
 */
export const findUserList = (current,size,userVo) => {
    return request({
        url: "/system/user/findUserPage",
        method: 'post',
        params: {
            current,
            size
        },
        data: userVo
    })
}

/**
 *  删除oss中的照片
 */
export const deleteImgFile = (file) => {
    return request({
        url: "/deleteImgFile",
        method: 'post',
        params: {
            file
        }
    })
}

/**
 * 后面的每次请求都是需要携带token的
 */
export const saveUser= (user) => {
    return request({
        url: "/system/user/addUser",
        method: 'post',
        data: user
    })
}


